package com.mapbased.wfw;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2004</p>
 *
 * <p>Company: mapbased.com</p>
 *
 * @author chy_hs(Baily)
 * @version 1.0
 */
public interface Config
{

     public void load(java.net.URL i);

    /**
     * do some reconfig after load
     */
    public void postLoad(PageLoader l);

    public void save();

    public String getValue(String key);

    public String getValue(String key,String defaultValue);

    public void putValue(String key,String value);

    public int getInt(String key,int defaultValue);
    /**
     *
     * @param key String
     * @param defaultValue String ,end with
     *  d=day;s=second;ms;m=;h=hour;M=mounth;w=week;y=year
     * @return long
     */
    public long getInterval(String key ,String defaultValue);

}
